/**
 * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
 */

CKEDITOR.editorConfig = function( config ) {
    /*将编辑器的语言设置为中文*/
    config.language = 'zh-cn';
    config.toolbar = 'Full';
    config.height = 330;
    config.toolbar_Full = [
        ['Source','Preview'],
		['Cut','Copy','Paste','PasteText','PasteFromWord'],
		['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat','CopyFormatting'],
		['NumberedList','BulletedList','-','Outdent','Indent'],
		['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
		['Link','Unlink'],
		['Bold','Italic','Underline','Strike'],
		['Image','Html5audio','Html5video','Table','HorizontalRule','Smiley','SpecialChar','PageBreak'],
		['Format','Font','FontSize'],
		['TextColor','BGColor','-','Maximize']
    ];

	config.removePlugins = 'elementspath';
    config.enterMode = CKEDITOR.ENTER_BR;
    config.shiftEnterMode = CKEDITOR.ENTER_P;
    config.format_tags = 'p;h1;h2;h3;h4;h5;h6';
    /*隐藏超链接与高级选项*/
    config.removeDialogTabs = 'image:advanced;image:Link';
    
    /*开启工具栏“图像”中文件上传功能，后面的url为图片上传要指向的的action或servlet*/
//    config.filebrowserImageUploadUrl= 'ckeditorUpload.action';//图片用
    config.filebrowserUploadUrl = 'ckeditorUpload.action';//图片、视频上传用

//    config.filebrowserImageBrowseUrl= 'ckeditorUpload.action';//服务器图片、视频浏览用
//    config.image_previewText=' ';
    //config.filebrowserUploadUrl = 'ckeditorUpload.action';    
    //粘贴图片时用得到
//    config.extraPlugins = 'image2,uploadimage,html5audio,html5video';
	config.uploadUrl = 'ckeditorUpload.action';
	//config.imageUploadUrl= 'ckeditorUpload.action';
   
    config.font_names = '宋体/SimSun;新宋体/NSimSun;仿宋/FangSong;楷体/KaiTi;仿宋_GB2312/FangSong_GB2312;'+  
    '楷体_GB2312/KaiTi_GB2312;黑体/SimHei;华文细黑/STXihei;华文楷体/STKaiti;华文宋体/STSong;华文中宋/STZhongsong;'+  
    '华文仿宋/STFangsong;华文彩云/STCaiyun;华文琥珀/STHupo;华文隶书/STLiti;华文行楷/STXingkai;华文新魏/STXinwei;'+  
    '方正舒体/FZShuTi;方正姚体/FZYaoti;细明体/MingLiU;新细明体/PMingLiU;微软雅黑/Microsoft YaHei;微软正黑/Microsoft JhengHei;'+  
    'Arial Black/Arial Black;'+ config.font_names;  

};
